﻿using System;
using QbservableCore.Serialization.Helpers;
using System.Runtime.Serialization;

namespace QbservableCore.Serialization
{
    [DataContract]
    public class ExpressionStub 
    {
        public ExpressionStub(Type entityType, string stubName = null)
        {
            StubName = stubName;
            _entityType = new LightweightSerializableType(entityType);
        }

        [DataMember]
        public string StubName { get; private set; }
        private readonly LightweightSerializableType _entityType;
    }
}